﻿using Microsoft.VisualStudio.TestTools.UnitTesting;
using TheSnakeGame.Engine;
using TheSnakeGame.Engine.GameObjects;

namespace Tests.TheSnakeGame.Engine
{
    [TestClass]
    public class FoodFactoryTests
    {
        [TestMethod]
        public void GetFood_AssureFoodHasCorrectCoodrinats()
        {
            FoodFactory foodFactory = new FoodFactory();
            Food food = foodFactory.GetFood(new Point(0, 3));

            Assert.AreEqual(0, food.Position.X);
            Assert.AreEqual(3, food.Position.Y);
        }
    }
}
